<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<title>${title}</title>
<%@include file="/WEB-INF/templates/common/common.jsp"%>
<script type="text/javascript" src="${basePath}/static/page/js/jqPaginator.js"></script>
<script type="text/javascript" src="${basePath}/static/My97DatePicker/WdatePicker.js"></script>
<script  type="text/javascript" src="${basePath}/static/js/util.js"></script>
<script  type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
<link href="${basePath}/static/layer/layer_style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="${basePath}/static/js/LodopFuncs.js"></script>
</head>
<body>
 <!--头部-->
 <%@include file="/WEB-INF/templates/common/header.jsp"%>

<!------导航条-->
 <%@include file="/WEB-INF/templates/common/navigation.jsp"%>

<div class="list_main lay_out">
 <div class="list_DH">
    <!--打印模块导航栏-->
 <%@include file="/WEB-INF/templates/common/printnav.jsp"%>
 </div>
 <div class="list_NR">
  <div class="loc">
   <h3>病案打印单</h3>
  </div>
 
  <div class="list_con_table"> 
  <form style="width:100%" id="form1">
  <table  style="text-align: center; font-size: 15px; font-weight: bold;"  class="Search_tableList" cellpadding="0" cellspacing="0" >
		      <tr>
		      <td style="border:solid 1px #edefee" colspan="2" class="tdLabel_4">病案打印记录单</td>
		     
		      </tr>
		       <tr>
		      <td style="border:solid 1px #edefee;width: 35%" class="tdLabel_5">姓名</td>
		      <td style="border:solid 1px #edefee;width: 65%" class="tdLabel_5">${hospitalNote.name}</td>
		      
		      </tr>
		       <tr>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">出院日期</td>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">${outHospitalDate}</td>
		     
		      </tr>
		       <tr>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">ID号</td>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">${hospitalNote.mrId}</td>
		     
		      </tr>
		       <tr>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">出院科室</td>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">${hospitalNote.outHospitalOfficeName}</td>
		      
		      </tr>
		       
		       <tr>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">打印页数</td>
		      <td style="border:solid 1px #edefee" class="tdLabel_5" style="text-align:center"><input type="text" style="text-align: center; font-weight: bold;" class="input_box" value="${printSize}" readonly="readonly"/></td>
		      
		      </tr>
		       <tr>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">操作人</td>
		      <td style="border:solid 1px #edefee" class="tdLabel_5">${operator}</td>
		      
		      </tr>
		     
     </table>
     </form>
     <form id="form2" hidden="true">
     	<table style="width: 64mm;height: 44mm;font-weight: bold; border:solid 1px #edefee; text-align: center;font-size: 15px;">
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee; " colspan="2">病案打印记录单</td>
			</tr>
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">姓名</td>
				<td style="border:solid 1px #edefee;">${hospitalNote.name}</td>
			</tr>
			
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">出院日期</td>
				<td style="border:solid 1px #edefee;">${outHospitalDate}</td>
			</tr>
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">ID号</td>
				<td style="border:solid 1px #edefee;">${hospitalNote.mrId}</td>
			</tr>
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">出院科室</td>
				<td style="border:solid 1px #edefee;">${hospitalNote.outHospitalOfficeName}</td>
			</tr>
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">打印页数</td>
				<td style="border:solid 1px #edefee;">${printSize}</td>
			</tr>
			<tr style="height: 5mm;">
				<td style="border:solid 1px #edefee;">操作人</td>
				<td style="border:solid 1px #edefee;">${operator}</td>
			</tr>
			
     	</table>
     </form>
     <div class="search_table">
		<ul>
    		<li class="Label_5">
	   			<a onclick="prn1_preview()">打印</a>
    		</li>
    	</ul>
  	</div>
    
 </div>
</div>
</div>
<!--页脚部分-->
<%@include file="/WEB-INF/templates/common/footer.jsp"%>
<script language="javascript" type="text/javascript">   
        var LODOP; //声明为全局变量 
	function prn1_preview() {	
		CreateOneFormPage();	
		LODOP.PREVIEW();	
	};
	function prn1_print() {		
		CreateOneFormPage();
		LODOP.PRINT();	
	};
	function prn1_printA() {		
		CreateOneFormPage();
		LODOP.PRINTA(); 	
	};	
	function CreateOneFormPage(){
		LODOP=getLodop();  
		LODOP.PRINT_INIT("病案打印记录单");
		//LODOP.SET_PRINT_STYLE("FontSize", 20); 
		//LODOP.SET_PRINT_PAGESIZE(1, 600,400, ""); / //设置纸张
		//LODOP.SET_PRINT_STYLE("FontColor", "red");
		//LODOP.SET_PRINT_STYLE("Bold",1);
		//LODOP. ADD_PRINT_TEXT("5%","5%","90%","90%","新加文本"); 
		/*  LODOP. ADD_PRINT_TEXT("5%","5%","90%","90%","新加文本");  
		ADD_PRINT_HTM(Top,Left,Width,Height,strHtmlContent)
		*/
		LODOP.ADD_PRINT_HTM("2mm","3mm","64mm","44mm",document.getElementById("form2").innerHTML);
	};	                     
	function prn2_preview() {	
		CreateTwoFormPage();	
		LODOP.PREVIEW();	
	};
	function prn2_manage() {	
		CreateTwoFormPage();
		LODOP.PRINT_SETUP();	
	};	
	function CreateTwoFormPage(){
		LODOP=getLodop();  
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单二");
		LODOP.ADD_PRINT_RECT(70,27,634,242,0,1);
		LODOP.ADD_PRINT_TEXT(29,236,279,38,"页面内容改变布局打印");
		LODOP.SET_PRINT_STYLEA(2,"FontSize",18);
		LODOP.SET_PRINT_STYLEA(2,"Bold",1);
		LODOP.ADD_PRINT_HTM(88,40,321,185,document.getElementById("form1").innerHTML);
		LODOP.ADD_PRINT_HTM(87,355,285,187,document.getElementById("form2").innerHTML);
		LODOP.ADD_PRINT_TEXT(319,58,500,30,"注：其中《表单一》按显示大小，《表单二》在程序控制宽度(285px)内自适应调整");
	};              
	function prn3_preview(){
		LODOP=getLodop();  
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_全页");
		LODOP.ADD_PRINT_HTM(0,0,"100%","100%",document.documentElement.innerHTML);
		LODOP.PREVIEW();	
	};	
</script> 
</body>
</html>
